<template>
  <div class="page-wrapper">
    <div class="container">
      <div class="interweaving-lines"></div>
      <div class="decoration-corner corner-tl"></div>
      <div class="decoration-corner corner-br"></div>
      <div class="floating-elements">
        <div class="floating-element"></div>
        <div class="floating-element"></div>
        <div class="floating-element"></div>
        <div class="floating-element"></div>
      </div>

      <div class="content">
        <div class="header">
          <button class="back-btn" @click="handleBackClick">
            <i class="fas fa-arrow-left"></i>
          </button>
          <div class="main-title">心理赋能定制</div>
        </div>

        <div class="description">
          事前的风险识别、事中的干预处置，到事后的士气重建，形成完整的心理风险管理闭环。通过认知升级+技能提升+实践应用，帮助管理者在组织心理风险中不仅"救火"，更实现团队与组织的"韧性成长"。
        </div>

        <div class="long-image-container">
          <div class="long-image-content">
            <!-- 风险识别与预防 -->
            <div class="phase-card">
              <div class="phase-header">风险识别与预防</div>
              <div class="phase-content">
                <div class="empowerment-item">
                  <div class="empowerment-title">变革思维认知升级</div>
                  <div class="empowerment-details">
                    风险信号识别、"三早"预防原则
                  </div>
                </div>
                <div class="empowerment-item">
                  <div class="empowerment-title">危机防控技能提升</div>
                  <div class="empowerment-details">
                    情绪他评工具、压力源识别技术
                  </div>
                </div>
                <div class="empowerment-item">
                  <div class="empowerment-title">管理工具实践应用</div>
                  <div class="empowerment-details">
                    定制预警方案、风险评估模拟
                  </div>
                </div>
              </div>
            </div>

            <!-- 危机干预与处置 -->
            <div class="phase-card">
              <div class="phase-header">危机干预与处置</div>
              <div class="phase-content">
                <div class="empowerment-item">
                  <div class="empowerment-title">变革思维认知升级</div>
                  <div class="empowerment-details">
                    双重客户原则、情绪急救核心价值
                  </div>
                </div>
                <div class="empowerment-item">
                  <div class="empowerment-title">危机防控技能提升</div>
                  <div class="empowerment-details">
                    EFS核心技能、现场干预技术
                  </div>
                </div>
                <div class="empowerment-item">
                  <div class="empowerment-title">管理工具实践应用</div>
                  <div class="empowerment-details">
                    全流程危机模拟、决策博弈演练
                  </div>
                </div>
              </div>
            </div>

            <!-- 组织韧性与恢复 -->
            <div class="phase-card">
              <div class="phase-header">组织韧性与恢复</div>
              <div class="phase-content">
                <div class="empowerment-item">
                  <div class="empowerment-title">变革思维认知升级</div>
                  <div class="empowerment-details">
                    抗逆力建设框架、成长型思维应用
                  </div>
                </div>
                <div class="empowerment-item">
                  <div class="empowerment-title">危机防控技能提升</div>
                  <div class="empowerment-details">
                    团体辅导技能、资源协同与转介
                  </div>
                </div>
                <div class="empowerment-item">
                  <div class="empowerment-title">管理工具实践应用</div>
                  <div class="empowerment-details">
                    韧性方案设计、管理复盘优化
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>

        <div class="contact-info">
          可与项目经理沟通<br />
          <span class="contact-highlight">专属心理赋能解决方案</span>
        </div>

        <div class="buttons">
          <button class="btn btn-back" @click="handleReturnClick">
            <i class="fas fa-arrow-left"></i>
            返回首页
          </button>
        </div>

        <div class="footer">组织心理风险管理系统 - 心理赋能体系</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PsychologicalEmpowermentSystem",
  methods: {
    handleBackClick() {
      // 模拟按钮点击效果
      const btn = event.target.closest(".back-btn");
      btn.style.transform = "translateY(-50%) scale(0.95)";
      setTimeout(() => {
        btn.style.transform = "translateY(-50%)";
        this.$router.go(-1);
      }, 200);
    },
    handleReturnClick() {
      // 模拟按钮点击效果
      const btn = event.target.closest(".btn-back");
      btn.style.transform = "scale(0.98)";
      setTimeout(() => {
        btn.style.transform = "";
        this.$router.go(-1);
      }, 200);
    },
  },
};
</script>

<style scoped>
.page-wrapper {
  background: linear-gradient(135deg, #b0d4f2 0%, #f5d1e0 100%);
  color: #2d467b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.container {
  width: 375px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(85, 145, 220, 0.15);
  padding: 30px 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(178, 212, 242, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(245, 209, 224, 0.3) 0%,
      transparent 50%
    );
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.back-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #6ba1e4, #4a7bc8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(85, 145, 220, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

.back-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(85, 145, 220, 0.4);
}

.main-title {
  font-weight: bold;
  font-size: 26px;
  color: #2d467b;
  line-height: 1.4;
  margin-bottom: 10px;
  position: relative;
  animation: titleGlow 3s infinite alternate;
  text-shadow: 0 2px 4px rgba(55, 99, 190, 0.2);
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 5px rgba(107, 161, 228, 0.5);
  }
  100% {
    text-shadow: 0 0 15px rgba(107, 161, 228, 0.8),
      0 0 20px rgba(107, 161, 228, 0.6);
  }
}

.description {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.5)
  );
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 25px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(85, 145, 220, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-family: "KaiTi", "STKaiti", serif;
  font-size: 15px;
  line-height: 1.7;
  color: #2d467b;
  text-indent: 2em;
  position: relative;
  overflow: hidden;
}

.description::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #6ba1e4, #f5a9c5);
  border-radius: 5px 0 0 5px;
}

.long-image-container {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(85, 145, 220, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.long-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(107, 161, 228, 0.1) 0%,
    transparent 70%
  );
  border-radius: 0 0 0 100%;
}

.long-image-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.phase-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.6)
  );
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(85, 145, 220, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: relative;
}

.phase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(85, 145, 220, 0.2);
}

.phase-header {
  background: linear-gradient(135deg, #4a7bc8, #6ba1e4);
  padding: 14px;
  font-weight: bold;
  font-size: 15px;
  color: white;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.phase-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
  transform: skewX(-20deg);
}

.phase-content {
  padding: 16px;
}

.empowerment-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(107, 161, 228, 0.2);
  transition: all 0.3s ease;
}

.empowerment-item:hover {
  background: rgba(107, 161, 228, 0.05);
  border-radius: 8px;
  padding: 10px;
  margin: 0 -6px 14px -6px;
}

.empowerment-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.empowerment-title {
  font-weight: 600;
  font-size: 13px;
  color: #4a7bc8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.empowerment-title::before {
  content: "•";
  margin-right: 6px;
  color: #6ba1e4;
  font-size: 16px;
}

.empowerment-details {
  font-size: 12px;
  color: #2d467b;
  line-height: 1.5;
  padding-left: 12px;
}

.contact-info {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.5)
  );
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(85, 145, 220, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-family: "KaiTi", "STKaiti", serif;
  font-size: 15px;
  line-height: 1.7;
  color: #2d467b;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #6ba1e4, #f5a9c5, #6ba1e4);
  border-radius: 0 0 18px 18px;
}

.contact-highlight {
  color: #3763be;
  margin-top: 8px;
  font-size: 16px;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(85, 145, 220, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-back {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
  color: #4a7bc8;
  border: 1px solid rgba(107, 161, 228, 0.4);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(85, 145, 220, 0.3);
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: float 15s infinite linear;
  box-shadow: 0 2px 10px rgba(85, 145, 220, 0.2);
}

.floating-element:nth-child(1) {
  width: 15px;
  height: 15px;
  top: 10%;
  left: 8%;
  animation-delay: 0s;
  background: rgba(107, 161, 228, 0.3);
}

.floating-element:nth-child(2) {
  width: 10px;
  height: 10px;
  top: 70%;
  left: 12%;
  animation-delay: 2s;
  background: rgba(245, 169, 197, 0.3);
}

.floating-element:nth-child(3) {
  width: 18px;
  height: 18px;
  top: 35%;
  left: 88%;
  animation-delay: 4s;
  background: rgba(107, 161, 228, 0.3);
}

.floating-element:nth-child(4) {
  width: 8px;
  height: 8px;
  top: 80%;
  left: 85%;
  animation-delay: 6s;
  background: rgba(245, 169, 197, 0.3);
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

.interweaving-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.15;
  background: linear-gradient(
      45deg,
      transparent 48%,
      #6ba1e4 49%,
      #6ba1e4 51%,
      transparent 52%
    ),
    linear-gradient(
      -45deg,
      transparent 48%,
      #f5a9c5 49%,
      #f5a9c5 51%,
      transparent 52%
    );
  background-size: 50px 50px;
}

.footer {
  margin-top: 20px;
  color: #4a7bc8;
  font-size: 12px;
  opacity: 0.8;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.decoration-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 0;
}

.corner-tl {
  top: 0;
  left: 0;
  background: radial-gradient(
    circle at top left,
    rgba(107, 161, 228, 0.1) 0%,
    transparent 70%
  );
  border-radius: 0 0 100% 0;
}

.corner-br {
  bottom: 0;
  right: 0;
  background: radial-gradient(
    circle at bottom right,
    rgba(245, 169, 197, 0.1) 0%,
    transparent 70%
  );
  border-radius: 100% 0 0 0;
}
</style>
